package com.liang.exam.service;

import com.github.pagehelper.PageInfo;
import com.liang.exam.entity.ExamStudent;
import com.liang.exam.entity.Teacher;
import com.liang.exam.entity.Exam;

import java.util.List;

public interface TeacherService {
    Teacher findByAccount(String account);

    void createExam(Exam exam);

    Exam getExamInfo(Integer examId);

    void updateExam(Exam exam);

    PageInfo<Exam> selectAll(Integer pageNum, Integer pageSize,Integer teacherId);

    void deleteExam(Integer examId);

    PageInfo<Exam> searchExam(Integer pageNum, Integer pageSize, Exam exam);

    void updateExamStatus(Integer examId);

    Teacher findById(int teacherId);

    void updatePassword(String password, int teacherId);

    PageInfo<ExamStudent> selectExamStudent(Integer pageNum, Integer pageSize, Integer id);

    void addStudentExam(ExamStudent examStudent);

    void addStudentExamList(List<ExamStudent> studentList, String eId);

    PageInfo<ExamStudent> findStudentExam(ExamStudent examStudent, Integer pageNum, Integer pageSize);

    void deleteStudent(Integer id);
}
